package com.yh.doing.interpret_pattern;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-09 17:24
 * @problem:
 **/
public class SubExpression extends FuHaoExpression{


    public SubExpression(Expression left, Expression right) {
        super(left, right);
    }


    @Override
    public int interprete(Context context) {
        return super.left.interprete(context)-super.right.interprete(context);
    }
}
